/**
 * Created by txl-pc on 2017/7/11.
 */
import config from '../config'
export default {
  mapData(name){
    return $.ajax({
      url: config.url + "/tupu/getData",
      type:"get",
      dataType:"json"
    })
  },
  pointData(page){
    return $.ajax({
      url: config.url + "/tupu/getxy",
      type:"get",
      dataType:"json",
      data:{
        id: page
      },
    })
  },
  relationData(parame){
    return $.ajax({
      url: config.url + "/tupu/getRela",
      type:"get",
      dataType:"json",
      data:parame,
    })
  },
  equipmentDataAjax(url) {
    $.support.cors = true;
    return $.ajax({
      url:url,
      type:"get",
      async:false,
      dataType:"json"
    })
  }
}